﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/NewStdMasterPage.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="AteneoLibri.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Log In
    </h2>
    <p>
        Inserire email e password.
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false">Registrati</asp:HyperLink>
        se non hai un account.
    </p>
    <asp:Panel ID="pnlLogin" runat="server" DefaultButton="LoginButton">
        <div class="accountInfo">
            <fieldset class="login">
                <legend>Informazioni account</legend>
                <p>
                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Email:</asp:Label>
                    <asp:TextBox ID="UserName" runat="server" CssClass="textEntry StandardTextBox"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                        Display="Dynamic" CssClass="failureNotification" ErrorMessage="Campo email obbligatorio."
                        ToolTip="Campo email obbligatorio.">*</asp:RequiredFieldValidator>
                </p>
                <p>
                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                    <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry StandardTextBox" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                        Display="Dynamic" CssClass="failureNotification" ErrorMessage="Campo password obbligatorio."
                        ToolTip="Campo password obbligatorio.">*</asp:RequiredFieldValidator>
                </p>
                <p>
                    <asp:CheckBox ID="RememberMe" runat="server" />
                    <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Mantienimi collegato</asp:Label>
                </p>
            </fieldset>
            <p class="submitButton">
                <asp:Button ID="LoginButton" runat="server" CssClass="StandardButton" Text="Log In" OnClick="LoginButton_Click" />
            </p>
        </div>
        <div>
            <asp:ValidationSummary ID="vsLogin" runat="server" DisplayMode="BulletList" CssClass="failureNotification"
                EnableClientScript="true" HeaderText="Attenzione:" />
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlLogInError" runat="server" Visible="false">
        <table>
            <tr>
                <td>
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/icon-denied.png" />
                </td>
                <td style="vertical-align: middle; padding-left:20px;">
                    <asp:Label ID="lblErrorText" runat="server" CssClass="failureNotification"></asp:Label>
                    <br /><br />
                    <asp:HyperLink ID="HyperLink3" runat="server" Text="Password dimenticata?" NavigateUrl="RecoveryPassword.aspx"
                        ToolTip="Password dimenticata?">                    
                    </asp:HyperLink>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
